/*
 * @Author: lee
 * @Date: 2024-01-16 10:04:22
 * @LastEditors: lee
 * @LastEditTime: 2024-01-16 14:43:44
 * @Description: file content
 */
// import { getToken } from "@/utils/auth";



// export default function({ store, redirect }) {
//   let isClient = process.client;
//   if (isClient) {
//     let token1 = cookie.get('Nuxt-Token')
//     console.log('token1', token1)
//   }
//   let token = getToken()
//   console.log('token111', token)


//   if (!token) {
//     return redirect('/login')
//   }
// }

export default function ({ $cookies, store, route, redirect }) {
  let token = $cookies.get('Nuxt-Token')
  if (!token) {
    redirect('/login')
  }
}
